cmake_minimum_required(VERSION 3.5)
project(ch12)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}  -w  -O0 -march=native -g -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w   -O0 -march=native -g -std=c++11")

set(CMAKE_BUILD_TYPE "Release")

find_package(Eigen3 REQUIRED)
include_directories(/usr/include/eigen3
		    /usr/include)

add_executable(ekf_fej ekf_fej.cpp)

add_executable(sliding_window sliding_window_pose_graph.cpp)
add_executable(rubust_kernel rubust_kernel.cpp)


